package temp;

import java.io.IOException;

import org.osgi.framework.BundleActivator;
import org.osgi.framework.BundleContext;

import algorithms.sut.SUTRunner;

public class Activator implements BundleActivator {

		/*
		 * (non-Javadoc)
		 * @see org.osgi.framework.BundleActivator#start(org.osgi.framework.BundleContext)
		 */
		public void start(BundleContext context) throws Exception {
			
			System.out.println("JRUPI start!");
			SUTRunner sutRunner = new SUTRunner();
			try {
				sutRunner.runSUT();
			} catch (IOException e) {
				e.printStackTrace();
			}
			System.exit(0);
		}
		
		/*
		 * (non-Javadoc)
		 * @see org.osgi.framework.BundleActivator#stop(org.osgi.framework.BundleContext)
		 */
		public void stop(BundleContext context) throws Exception {
			System.out.println("JRUPI stop!");
		}

	}

